<html lang="en">
<%-include ../public/header.ejs%>

    <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
    <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
    <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
    <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->

    <body class="">
        <!--<![endif]-->


        <%-include ../public/navbar.ejs%>

            <%-include ../public/aside.ejs%>



                <div class="content">

                    <div class="header">

                        <h1 class="page-title">编辑订单</h1>
                    </div>

                    <ul class="breadcrumb">
                        <li><a href="<%=host%>/order">起始页</a> <span class="divider">/</span></li>
                        <li><a href="<%=host%>/admin/order">订单列表</a> <span class="divider">/</span></li>
                        <li class="active">编辑订单</li>
                    </ul>

                    <div class="container-fluid">
                        <form id="tab" method="post" action="<%=host%>/admin/order/editPost">
                            <label>订单号</label>
                            <input name="order_id" type="text" value="<%=list.order_id%>" class="input-xlarge">
                            <label>用户名</label>
                            <input name="username" type="text" value="<%=list.username%>" class="input-xlarge">
                            <label>手机号</label>
                            <input name="tel" type="text" value="<%=list.tel%>" class="input-xlarge">
                            <label>商品名称</label>
                            <input type="text" name="product_title" class="input-xlarge" value="<%=list.product_title%>">
                            <label>单价</label>
                            <input type="text" name="price" class="input-xlarge" value="<%=list.price%>">
                            <label>数量</label>
                            <input type="text" name="count" class="input-xlarge" value="<%=list.count%>">
                            <label>总价</label>
                            <input type="text" name="all_price" class="input-xlarge" value="<%=list.all_price%>">
                            <label>下单时间</label>
                            <input type="text" name="add_time" class="input-xlarge" value="<%=list.add_time%>">
                            <label>地址</label>
                            <input type="text" name="address" class="input-xlarge" value="<%=list.address%>">
                            <label>状态</label>
                            <%if(list.status=="1"){%>
                                <p>是<input type="radio" value="1" checked class="input-xlarge" name="status"> 否
                                    <input type="radio" value="0" class="input-xlarge" name="status"></p>
                                <%}else{%>
                                    <p> 是<input type="radio" value="1" class="input-xlarge" name="status"> 否
                                        <input type="radio" value="0" checked class="input-xlarge" name="status"></p>
                            <%}%>
                            <input type="hidden" name="id" value="<%=list._id%>" /> 
                            <input type="submit" value="提交" />
                        </form>
                    </div>
                </div>

                <script src="<%=host%>/lib/bootstrap/js/bootstrap.js"></script>
                <script type="text/javascript">
                    $("[rel=tooltip]").tooltip();
                    $(function () {
                        $('.demo-cancel-click').click(function () { return false; });
                    });

                    $('#content').xheditor({
                        html5Upload: false,
                        tools: 'full',
                        skin: 'default',
                        width: 500, height: 400,
                        upImgUrl: "<%=host%>/admin/article/upload",  /*图片上传post的路径*/
                        upImgExt: "jpg,jpeg,gif,png"
                    });
                </script>


    </body>

</html>